package com.ansuenjob.jsonBuilder;

import org.json.JSONException;
import org.json.JSONObject;

import com.ansuenjob.model.Company;

public class InterviewCompanyBuilder extends JSONBuilde {

	@Override
	public Company buildJson(JSONObject jsonObject) throws JSONException {
		Integer comid = jsonObject.getInt("comid");
		String companyName = jsonObject.getString("companyName");
		Company company = new Company();
		company.setCompanyId(comid);
		company.setCompanyName(companyName);
		return company;
	}

}
